package com.ibeeking.found.cop.service.mapper;

import com.ibeeking.found.common.base.BaseMapper;
import com.ibeeking.found.cop.service.common.dos.CopDepartmentDO;
import com.ibeeking.found.cop.service.common.dos.CopEmployeeDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CopEmployeeMapper extends BaseMapper<CopEmployeeDO> {

    Integer batchInsertEmployeeListFromWxCp(@Param("tenantId") Long tenantId, @Param("employeeList") List<CopEmployeeDO> copEmployeeDOS);

    Integer insertEmployeeFromWxCp(@Param("tenantId") Long tenantId, @Param("employee") CopEmployeeDO copEmployeeDO);

    Integer updateEmployeeFromWxCp(@Param("tenantId") Long tenantId, @Param("employee") CopEmployeeDO copEmployeeDO);

    Integer deleteEmployeeFromWxCp(@Param("tenantId") Long tenantId, @Param("id") Long id);
}
